//
//  CustomerMasterTableViewController.h
//  CollectionManagerFlow
//
//  Created by Sophia Tsay on 4/23/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/CoreAnimation.h>
#import "SplitViewBarButtonItemPresenter.h"
#import "CollectorsListTableViewController.h"
#import "TopDelinquentCustomersViewController.h"
#import "GraphViewController.h"

#define customerMetricList [NSArray arrayWithObjects:@"Open Receivables", @"Amount Overdue", @"Days Sales Outstanding", @"Average Days Delinquent", @"Sales Weighted DSO", @"True DSO", @"Percent Current", @"Percent 91+ Days Delinquent", @"Strategy Effectiveness", @"Average Days Late",  @"Total Receipt",   @"Collection Score", @"Kept Promise Ratio", @"Weighted Average Days Late", @"Weighted Average Days Paid", @"NSF Amount",@"NSF Count", nil]

#define customerMetricValueList [NSArray arrayWithObjects:@"57,354.62   ", @"1,254.62   ", @"45", @"18", @"27", @"34", @"43.3", @"40", @"5.6", @"5.5", @"5", @"0", @"0", @"12", @"16", @"0", @"0", @"0",nil]

#define customerMetricsWithAnalyticsList [NSArray arrayWithObjects:@"Net Balance", @"Amount Overdue", @"Days Sales Outstanding", @"Percent Current", nil]

#define collectorMetricList [NSArray arrayWithObjects:@"Collections Effectiveness Index", @"Number of Delinquencies", @"Number of Delinquent Customers", @"Number of Task Activities", @"Net Balance", @"Amount Overdue", @"Strategy Effectiveness", @"Average Days Delinquent", @"Percent Current", @"Percent 91+ Days Delinquent", @"Collection Score", nil]

#define collectorMetricValueList [NSArray arrayWithObjects:@"98", @"30", @"16", @"45", @"57,354.62   ", @"1,254.62   ", @"5.5%", @"27", @"40", @"5.6", @"0", nil]

#define collectorMetricsWithAnalyticsList [NSArray arrayWithObjects:@"Collections Effectiveness Index", @"Number of Delinquencies", @"Number of Delinquent Customers", @"Net Balance", @"Amount Overdue", nil]

@interface CustomerMasterTableViewController : UIViewController <UITableViewDataSource, UITableViewDelegate,UISplitViewControllerDelegate, UIPopoverControllerDelegate, popoverDelegate, topPopoverDelegate>
@property (strong, nonatomic) IBOutlet UITableView *customerTableView;
@property (strong, nonatomic) IBOutlet UIView *customerHeaderView;
@property (strong, nonatomic) IBOutlet UIButton *detailButton;
//@property (strong, nonatomic) NSString *collectorName;
@property (strong, nonatomic) IBOutlet UIToolbar *toolBar;
@property (strong, nonatomic) NSString *objectName;
@property (strong, nonatomic) NSString *objectType;


- (UIImage *)scaleImage:(UIImage *)image toSize:(CGSize)targetSize;

@end
